//
//  GetMyData.m
//  ELife
//
//  Created by fenglu on 11-7-19.
//  Copyright 2011年 __MyCompanyName__. All rights reserved.
//

#import "GetMyData.h"
#import "M13UserDefaults.h"

@implementation GetMyData

+(NSString*) getUserName
{
    NSArray* userArray = [self getUS:USERINFO_NAMEANDPASSWORD];
    NSString* userName = nil;
    if (userArray != nil && [userArray count] > 0) {
        userName = [userArray objectAtIndex:0];
    }
    
    return userName;
}


+(NSString*) getUserId
{
    NSArray* userArray = [self getUS:USERINFO_NAMEANDPASSWORD];
    NSString* userid = nil;
    if (userArray != nil && [userArray count] > 0) {
        userid = [userArray objectAtIndex:2];
    }
    
    return userid;
}



+(NSString*) getPassWord
{
    NSArray* userArray = [self getUS:USERINFO_NAMEANDPASSWORD];
    NSString* userid = nil;
    if (userArray != nil && [userArray count] > 0) {
        userid = [userArray objectAtIndex:1];
    }
    
    return userid;
}

+(NSArray*) getMarquees
{
    NSArray* userArray = [self getUS:USERINFO_MARQUEES];
    return userArray;
}

+(id) getUS:(NSString*)name
{
    return [M13UserDefaults getUserDefaultsArray:name];
}

+ (NSString *)getClientVersion
{
    return @"edsh_android_000x000_common_common_11001_v1.00_542";
}
@end
